//
//  WeddingCarSkuCell.m
//  BaseProject
//
//  Created by 王洋 on 2021/5/20.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "WeddingCarSkuCell.h"

@implementation WeddingCarSkuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(CommonSelSkuModel *)model andfollowNum:(NSInteger)followNum {
    
    self.contentLab.text = model.specName;
    
    NSString *title = @"";
    switch (model.specAttribute) {
        case 1:{
            title = @"头车";
            self.contentLab.text = [NSString stringWithFormat:@"%@ * 1辆",model.specName];
        } break;
        case 2:{
            title = @"跟车";
            self.contentLab.text = [NSString stringWithFormat:@"%@ * %ld辆",model.specName,followNum];
        } break;
        case 3:{
            title = @"时间";
        } break;
        case 4:{
            title = @"里程";
        } break;
        case 5:{
            title = @"颜色";
        } break;
        default:
            break;
    }
    self.titleLab.text = title;
}

@end
